import {
  defineStore
} from 'pinia'
import {
  ref
} from 'vue'

export const useSubmitData = defineStore('submitData', () => {

  const submitData = ref(null)

  const setSubmitData = (data) => {
    submitData.value = data
    console.log(data);
  }


  return {
    submitData, setSubmitData
  }
},
  {

    // 打开持久化，默认进行 localStorage 储存
    persist: true
  },
)